package mjc.type;

import java.io.Serializable;

public class INFO implements Serializable {

	private String nom;
	private int dep;
	private boolean defini;
	private DTYPE dtype; 
	
	public INFO(String nom, int dep, boolean defini, DTYPE dtype) {
		this.nom=nom;
		this.dep=dep;
		this.defini=defini;
		this.dtype=dtype;
	}
	
	public DTYPE getType() {
		return dtype;
	}
	
	public String getNom() {
		return this.nom;
	}
	
	public int getDep() {
		return this.dep;
	}
	
	public boolean getDefini() {
		return this.defini;
	}
	
	public int getTailleType() {
		return dtype.getTaille();
	}
	
	public void setTailleType(int taille) {
		dtype.setTaille(taille);
	}
	
	public String toString() {
		return "nom->"+this.nom+" dep->"+this.dep+" defini->"+this.defini+" type->"+dtype.toString();
	}
}
